﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace House_Control
{
    //This class will handle everything dealing with Bathtubs in the house.
    class Bathtub
    {
        Boolean isJetsOn;
        double currentTemp;
        double targetTemp;

        public Bathtub() 
        {
            currentTemp = 75.6;
            targetTemp = 100;
            isJetsOn = false;
        }

        public void setTargetTemp(double temp)
        {
            targetTemp = temp;
        }

        public double getCurrentTemp()
        {
            return currentTemp;
        }

        public double getTargetTemp()
        {
            return targetTemp;
        }
        public void changeJetState()
        {
            if (isJetsOn) isJetsOn = false;
            else isJetsOn = true;
        }

        public string getJetStateString()
        {
            if (isJetsOn) return "On";
            else return "Off";
        }
    }
}
